package com.feiwo.nonego.rpc.proxy.api.consumer;

import com.feiwo.nonego.rpc.protocol.RpcProtocol;
import com.feiwo.nonego.rpc.protocol.request.RpcRequest;
import com.feiwo.nonego.rpc.proxy.api.future.RpcFuture;
import com.feiwo.nonego.rpc.registry.api.RegistryService;

import java.util.Optional;

/**
 *
 *
 * @author feiwo 2025-08-08
 */
public interface Consumer {

    Optional<RpcFuture> sendRequest(RpcProtocol<RpcRequest> protocol, RegistryService registryService) throws Exception;

}
